from fastapi import FastAPI
from typing import Any

app = FastAPI()

def returnData(code: int, msg: str, data: Any):
    return {
        "code": code,
        "msg": str(msg),
        "data": data
    }